package r25.room;

import r25.character.ICharacter;
import r25.engine.Event;
import r25.engine.IEvent.EVENT;
import r25.engine.IGameInstance;
import r25.engine.IGameInstance.CHARACTER_ACTION;

/**
 * Take your character figurine and place it on the Central room.
 * 
 * @author u211354
 * 
 */
public class VortexRoom extends AbstractRoom {
	@Override
	public CHARACTER_ACTION onEnter(IGameInstance gi, ICharacter character)
			throws Exception {
		CHARACTER_ACTION rc = super.onEnter(gi, character);

		gi.pushEvent(new Event(EVENT.MOVED_IN_CENTRAL_ROOM, this, character));
		character.moveInRoom(gi.getBoard().getRoomByName("CentralRoom"));
		return rc;
	}
}
